//package com.farm.chat;
//
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import java.util.Scanner;
//
///**
// * ClassName: ChatController
// * Package: com.farm.chat
// * Description
// *
// * @Author KarUo
// * @Create 2024/3/9 20:19
// * @Version 1.0
// */
//@Slf4j
//@RestController
//@RequestMapping("/chat")
//public class ChatController {
//
//    @PostMapping("/chat/build")
//    public void chatBuild(String question) throws InterruptedException {
//        Chat chat = new Chat();
//        boolean result = chat.getAccessToken();
//        if (result){
//            //Scanner scanner = new Scanner(System.in);
//            while(!"q".equals(question)){
//                chat.getAnswer(question);
//                chat.getRequestBody();
//               // question = scanner.nextLine();
//            }
//        }
//    }
//
//}
